<template>
	<div class="select-item">
		<div class="percent percent-area">更多筛选:</div>
		<div class="per-cell per-cell-2">
			<div class="condition" v-for='(condition,index) of conditions'>
				<select
					v-model=condition.type_name
					@change=change($event)
					:type=condition.type>
					// <option class="hide">{{condition.type_name}}</option>
					<option v-for='val of condition.child' :orderid=val.orderid :datavalue=val.datavalue>{{val.dataname}}</option>
				</select>
			</div>
		</div>
	</div>
</template>
<script>
	module['base-condition'] = {
		template: template,
		data: function data() {
			return {
				conditions: null
			};
		},
		created: function created() {
			var that = this;
			window.$condition = this;
			base.request(base.api(52), {}, function (d) {
				that.conditions = d.data;
			});
		},
		methods: {
			change: function change(e) {
				this.$emit('change', e);
			}
		}
	};
</script>